Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show outdated message when new test is available, and disable review button immediately #87

Merged

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Sep 7, 2023

  1. You can't accept changes when there is a next build
  2. As soon as there's a new snapshot for the current story, we change the header to send you there.

How to QA

  1. Create a build with changes
  2. Browse to the story with changes
  3. Run second build:
    a. Review button should be disabled as soon as second build reaches the "snapshotting" state
    b. Header should prompt you to switch stories as soon as the story you are looking at is captured.
📦 Published PR as canary version: 0.0.66--canary.87.fc95b12.0

✨ Test out this PR locally via:

npm install @chromaui/addon-visual-tests@0.0.66--canary.87.fc95b12.0
# or 
yarn add @chromaui/addon-visual-tests@0.0.66--canary.87.fc95b12.0

@linear
Copy link

linear bot commented Sep 7, 2023

AP-3633 Show "Snapshot Outdated" header as soon as we have a new snapshot for the current story

Snapshot outdated - Visual testing in Storybook (Figma)

NOTE: We can detect this state if nextBuild.id !== storyBuild?.id and the story is captured in the nextBuild

Base automatically changed from tom/refactor-visual-tests-stories to main September 7, 2023 12:01
src/screens/VisualTests/BuildResults.tsx Show resolved Hide resolved
src/screens/VisualTests/StoryInfo.tsx Outdated Show resolved Hide resolved
@tmeasday tmeasday merged commit fc95b12 into main Sep 12, 2023
3 checks passed
@tmeasday
Copy link
Member Author

@MichaelArestad I accidentally merged this but I was still hoping to resolve this final question: https://www.chromatic.com/review?appId=6480e1b0042842f149cfd74c&number=87&type=linked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants